package com.sl.au.service;

import java.util.List;
import java.util.Map;

import org.springframework.data.domain.Sort.Direction;

import com.sl.au.entity.Weekly;
import com.sl.au.repository.WeeklyRepository;

public interface WeeklyService extends BaseService {
	WeeklyRepository getRepository();

	List<Weekly> getPage(int start, int length, Map<String, String> condition, String key, String dataFilter,
			String orderName, Direction dir);
	
	List<Weekly> getPageToMobile(int start, int length, Map<String, String> condition, String key, String dataFilter
			,boolean published,String orderName, Direction dir);
	

	long getCount(int start, int length, Map<String, String> condition,String dataFilter);
	/**
	 * 编辑保存周报
	 * 
	 * @param weekly
	 */
	void patch(Weekly weekly);

	long getCountMobile(int start, int length, Map<String, String> condition, String dataFilter, boolean published);
	
	
	
	//
	// /**得到快速查询结果，以且于数据导出成EXCEL
	// * @param key
	// * @return
	// */
	// List<Weekly> getExportData(String key);
}
